package cn.jingyuan.swan.system.web.restful;

import cn.jingyuan.swan.cloud.core.RestResult;
import cn.jingyuan.swan.system.web.restful.model.GatewayAccessLogRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

/**
 * 网关日志服务
 */
public interface GatewayAccessLogRestful {

    /**
     * 记录网关访问日志
     */
    @PostMapping(path = "/gateway/log/log", produces = APPLICATION_JSON_VALUE)
    RestResult<Long> log(@RequestBody GatewayAccessLogRequest addQo);

}
